import axios from "../../utils/axios";

export const getRankData = (topid) => {
  const url = "/fcj/music/rankSongList"; //使用/ 会自动拼接当前的访问地址
  return axios.post(url, { topid });
};

export const getBanner = (topid) => {
  const url = "/fcj/music/getBanner"; //使用/ 会自动拼接当前的访问地址
  return axios.get(url, { topid });
};
export const getRecommendList = (topid) => {
  // 前面一定要加/
  const url = "/fcj/music/getRecommendList";
  return axios.get(url, { topid });
};

export const getSingerList = () => {
  const url = "/fcj/music/singerList";
  return axios.get(url, {});
};
export const getSongList = (singermid) => {
  const url = "/fcj/music/songListById";
  return axios.post(url, { singermid });
};

export const getSongsUrl = (mids) => {
  const url = "/fcj/music/songurl";
  return axios.post(url, { mids });
};

export const gettopRank = () => {
  const url = "/fcj/music/topRank";
  return axios.get(url);
};

export const getLyricByMid = (songmid) => {
  const url = "/fcj/music/lyric";
  return axios.post(url, { songmid });
};
